package cn.autoOffice.service.impl;
/*
 *功能说明：报销业务实现类
 *@author 皮永浪
 *@Date 2023/3/29 10:47
 */

import cn.autoOffice.bean.pojo.Reimburse;
import cn.autoOffice.mapper.ReimburseMapper;
import cn.autoOffice.service.ReimburseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ReimburseServiceImpl implements ReimburseService{

    @Autowired
    private ReimburseMapper reimburseMapper;

    //根据员工工号查询报销单
    @Override
    public List<Reimburse> findReimburseBySubmitter(String submitter) {
        return reimburseMapper.findReimburseBySubmitter(submitter);
    }

    //添加报销数据
    @Override
    public boolean addReimburseInfo(Reimburse reimburse) {
        return reimburseMapper.addReimburseInfo(reimburse);
    }


}
